<%@attribute name="consultas" type="java.util.Vector" required="true" rtexprvalue="true" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib tagdir="/WEB-INF/tags" prefix="wn" %>
<wn:JSform></wn:JSform>
<table width="300" border="1">
  <tr>
    <td>Paciente</td>
    <td>Nome da Mae</td>
    <td>RG</td>
    <td>Status</td>
    <td>Editar</td>
  </tr>
  
  <c:forEach items="${consultas}" var="c">
  <tr>
    <td>${c.paciente.nome}</td>
    <td>
    	${c.paciente.mae }
    </td>
    <td>
    	${c.paciente.rg }
    </td>
  	<td>
  	${c.situacao}
  	</td>
  	<td>
  	<a id="editar" href="AgendaServlet?acao=Alterar&idconsulta=${c.id}">Editar</a>
  	</td>
  </tr>
  
  </c:forEach>
</table>